PoD: Fix debug build.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Sep 2009 08:13:01 +0000 (09:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Sep 2009 08:13:01 +0000 (09:13 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/p2m.c

index 7317cbe8cf4e66e1f6fc6ae4e183c966dd291591..79777932d13a9369b47264f6b24b36c159a5e6bd 100644 (file)
@@ -307,13 +307,14 @@ p2m_pod_cache_add(struct domain *d,
     }
 #endif
 
-    /* Pages from domain_alloc and returned by the balloon driver aren't
-     * guaranteed to be zero; but by reclaiming zero pages, we implicitly promise
-     * to provide zero pages.  So we scrub pages before using */
-    for ( i=0; i< 1 << order ; i++)
+    /*
+     * Pages from domain_alloc and returned by the balloon driver aren't
+     * guaranteed to be zero; but by reclaiming zero pages, we implicitly
+     * promise to provide zero pages. So we scrub pages before using.
+     */
+    for ( i = 0; i < (1 << order); i++ )
     {
-        char * b;
-        b = map_domain_page(page_to_mfn(page) + i);
+        char *b = map_domain_page(mfn_x(page_to_mfn(page)) + i);
         clear_page(b);
         unmap_domain_page(b);
     }